package org.example.Thread01;

public class Test04 {
    public static void main(String[] args) throws InterruptedException {
        Object locker=new Object();
        synchronized (locker){
            System.out.println("开始等待...");
            locker.wait();
            System.out.println("等待结束...");
        }
    }
}
